<?php

namespace App\Services;

/**
 * @package App\Services
 * @see SysAgreementService
 */
class SysAgreementService extends BaseService
{
    private $_repository;

    public function __construct()
    {
        parent::__construct();
        $this->_repository = repository()->SysAgreementRepository;
    }

    /**
     * @title 获取协议信息
     * @param string $route
     */
    public function getAgreementByRoute( $route )
    {
        return $this->_repository->getAgreementByRoute($route);
    }
}